package com.lagou.service;

import com.lagou.dao.AccountDao;

import java.sql.SQLException;

public class AccountService {
    public static boolean signIn(String username,String pwd) throws SQLException {
        return AccountDao.signIn(username,pwd);
    }
    public static boolean register(String username,String pwd) throws SQLException {

        if (check(username))
            return false;
        return AccountDao.register(username,pwd);
    }
    public static boolean check(String username) throws SQLException {
        return AccountDao.check(username);
    }
}
